home *** CD-ROM | disk | FTP | other *** search
- COMMAND LINE EDITING
-
- You can edit the command line in MM, by using a set of control characters
- similar to emacs. In the following, ^A indicates control-A, and so on.
-
- Move cursor: ^B back 1 character ^F forward 1 character
- ^A to beginning of line ^E to end of line
- Delete: BACKSPACE character before cursor ^H same as BACKSPACE
- ^D character at cursor ^K from cursor to end of line
- ^W word at/before cursor ^U entire line
- Insert: Characters are inserted wherever the cursor is
- Transpose: ^T transpose character at cursor with the one before it
-
- Example: Suppose you want to see headers from melissa since Nov 19, 1990.
- Your fingers slip as you start to type and you stop midway:
- MM>g form mel
- As an example, to fix the two errors and continue you could do this:
- ^A to start of line, ^D to delete "g", type "h", ^F a few times to the
- "r", ^T to transpose "r" and "o", ^E to end of line, then type the rest:
- MM>h from mel since nov 19 1990
- Actually in this case it might be as easy to type ^U and retype completely.
-
- The full set of control letters is as follows:
-
- ^A Cursor to start of line ^N Do next command in history
- ^B Cursor back 1 character ^O [does nothing]
- ^C Kill MM (not recommended) ^P Do previous command in history
- ^D Delete 1 character at cursor ^Q Put output on screen [see ^S]
- ^E Cursor to end of line ^R Redisplay line
- ^F Cursor forward 1 character ^S Stop output to screen [see ^Q]
- ^G [invalid command] ^T Transpose 2 characters at cursor
- ^H Backspace and delete ^U Delete entire line
- ^I Completion, same as TAB key ^V Quote next character
- ^J Newline, same as RETURN key ^W Delete word at/before cursor
- ^K Delete from cursor to end ^X [invalid command]
- ^L Clear screen ^Y Suspend MM
- ^M Return, same as RETURN key ^Z Suspend MM
-
- For ^N, ^P, see "help command-history". You can redisplay a command from
- history, and then edit parts of it, to avoid retyping the whole line.
-
- For more help type "help" and one of these topics:
- ccmd command-history
-